<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/common/common.jsp" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> 
  <head>
    <base href="<%=basePath%>" />
    <title>Allocator History Data List</title>
    <script type="text/javascript">
		var path = "<%=basePath%>";
	</script>
	<meta http-equiv="pragma" content="no-cache" />
	<meta http-equiv="cache-control" content="no-cache" />
	<meta http-equiv="expires" content="0" />    
	<link rel="stylesheet" type="text/css" href="<%=basePath%>beshs/css/content.css" />
	<script type="text/javascript" src="<%=basePath%>resources/jquery/jquery-1.7.2.min.js"></script>
	<!-- 页面特效 -->
	<jsp:include page="/beshs/res-refer/page-effect-reference.jsp" />
	<!-- 系统通用资源 -->
	<jsp:include page="/resources/resource-refer/common-resource-reference.jsp" />
  </head>
  <body>
  	<div class="content_all">
	  	<!--查询条件-->
	  	<div class="search">
	  	</div>
	  	<!--查询列表-->
	  	<div class="search_table_all">
	    	<table class="search_table" cellspacing="0" cellpadding="0">
	      		<thead>
	      			<tr>
	      				<th colspan="6">History Data</th>
	      			</tr>
	        		<tr>
		          		<th style="width:50px;">Serial No.</th>
			          	<th>Allocator No.</th>
			          	<th>Upload Time</th>
			          	<th>Readings</th>
			          	<th>Rear Board Temperature</th>
			          	<th>Front Board Temperature</th>
	        		</tr>
	      		</thead>
	      		<tbody>
	      			<s:iterator value="historyAssignMeterDatas" var="meterData" status="status">
	      				<!-- 不合法数据（上传时间、前背板温度问题） -->
	      				<s:if test="illegalIDList.indexOf(#meterData.id) >= 0">
							<tr style="background-color: ffa0a0;">
						</s:if>
						<!-- GPRS等故障数据的系统修正 -->
						<s:elseif test="#meterData.uploadStatus == 1">
	      					<tr style="background-color: yellow;">
	      				</s:elseif>
	      				<!-- 人工平滑数据 -->
	      				<s:elseif test="#meterData.dataType == 0">
	      					<tr style="background-color: 9AFF9A;">
	      				</s:elseif>
						<s:else>
							<tr>
						</s:else>
		          			<td><s:property value="#status.index+1" /></td>
		          			<td><s:property value="#meterData.seriousNum" /></td>
		          			<td>
		          				<s:date name='#meterData.readTime' format='yyyy-MM-dd HH:mm:ss' nice='false' />
		          			</td>
		          			<td><s:property value="#meterData.readNum" /></td>
		          			<td><s:property value='#meterData.backTmperature' />&nbsp;&#8451;</td>
		          			<td><s:property value='#meterData.fontTemperature' />&nbsp;&#8451;</td>
		        		</tr>
	      			</s:iterator>
	      		</tbody>
	    	</table>
	  	</div>
	</div>
  </body>
</html>
